Add approximate pattern implementation.