Created reference implementation of SETTLE