Added formatType() calls around each output type