Fixed hardcoding of potm0