Initial version of code for like logic