Experimental expand function.
Closes #21.