Add in time check for recursions, should fix some crashes.