[PATCH 1/6] Change options to flag approach.