introducing static array to hold time values and extensive logging