Added missing $timeout parameter