Implemented bias calculation as confirmed by Giovanni.