Added in following key and max row functions.