Add setter for realm