Fixed bug in transition functions.
Compile time improvements, part 1. GUI improvements.