Added functionality to search a sequence