Added core functionality, including interceptor. WIP