(XDK) Implement analog code