Added checkout before the define runs