Added additonal functions for constraining the keyspace