Some integration code. to be updated