Inserted getPreviousID