Changed course loop for mobile