Added support for a config phase.
Fixed indentations.