Fix for periodic execution timing