added current time and functionality