Add support for configurable staging option.

fixes #148