Messed around with the temp functions