I think the parameter `$timeout` is missing in the class header.