Moving script and style methods to mod