Daniel modified startup routine.