Code for IP3