Made find function work more or less