Refactored StarScript: Fixed