Think it's better to move this to the top of the file, otherwise it declares a new type each time.