Set box_optional and parallel attributes

Fixes #127 and #126.