Separate temp and frequency variables