Added adjoint time to adaptation_time and cleaned up function