Function to retrieve swi argument. Untested.