Modified prof compilation flags.
Implementing gui controller.