Updated output formatting and added return value enumeration.