Bugfixes. Flay optimization, flog optimization.