First functional version of Amazing. Algorithm for selecting keys not yet implemented.