Added support for purchase messages and also upgraded libraries.