Refactor

Move the rot extensions I've added to a separate file.