Modify temp script to reliably get temp