Adding timer loop into maestor