The value of end is never set to the outcome of the func after this all happens.