Modified the output method