compilescript
Rules: Refactored and simplified some stuff