Implemented proper output