Changed implementation of add_cognit and planning send