Refining hourly script