Implemented domain contraoller logic