Implemented full realm support