Cleaning up first run crash and some other routines.