added initial pass of loop funtion to bypass delay on timer