Make it possible to use setBoundary. Fixes #5.