Time checks added, Makefile with optimization flags