Added some callback parameters
Fixed sample schat