Position search working, needs optimization though