Merge Smith code

git-svn-id: http://crux-framework.googlecode.com/svn@4669 a5d2bbaa-053c-11de-b17c-0f1ef23b492c