Fast implementation and test