Add SDP preapration functions