Add seconds variable to sleep callback