Some spawn algorithm changes and added time adjustment.