Removed uneeded timeout gem and fixed condition where timeAvailable goes to 0