Get rid of mkagent() routine