Apparently the pragma isn't allowed in functions...