added support to 5 sec resolution