Added hints and streamlining input.