added option to specify how often to check