Debugging, some memory management and correct reset and some other stuff.