Created xp API wrapper to provide backward comapatability for new cmd API.