clean doAction and analyze data.
Can now properly handle messages