Added undefined variable error