Added implementation for an elapsed time check