Merge "Pass the magnetized object instead of using member variable" into main