Software thwarts mobile phone chatting while driving