Adding methods for xplatform.