Added prestart routine