Adding pimessage file with some functions