An implementation of the BWFP