Added restrictions on module rotation