Wrapped each problem in "pn" method.
Cleaned up return values.