Solved errors with variable names