Took the latest version from BICS's Google source, and then added fix from mallochine/bics