Refactored clock and monthly check