Switched to Date.now() for higher performance