Fixed variable naming - removed m_ prefix for local variables