commited core to add timeout to it

added $timeout to the core controller.