Almost feature complete. Weird bug with search and log