These should be moved out of global scope