Put hash outside of handle function