Added Final Time Setting Function