Add spawn function and improve chatcommand feedback