Maybe this could be moved a bit up at the start of the file.