Implementing controller layer