Moved extern definition to more sensible place.