Should this go into a .h file somewhere? I note that it is redeclared again further down.