Removed formatOutput function