Implemented labels searching
TODO: implement loop search