Applied a fix to processAnswer supplied by Fabian Bernhard