Fixing issues with predictTime