Getting Max output