Add hash arguments

Takes in hashes for `level` and `within` arguments.