Removed prints from SAR operation, implemented serialization for search patterns and misc bugs