Search working. Change read method to work without \0.