Changed main script permissions