Integration of FIRST_OBSERVATION and LAST_OBSERVATION into prepareSGP