Added custom time check interval and fixed issue #1