Move everything outside of define