Running inline script instead of hardcoded script