Removed unreferenced local variables