Time for action - adding the realm permission functions