First working search is implemented.
Setting memory constaints