Sleep bug fixed, stupid mistake in time.h