Removed old implementation of start and end critical. using default implementations now. Also, added a check in SysTickHandler to avoid trying to read from a NULL pointer to avoid crashes.