added timer and testing outputs