WIP. Added basic flay flog, with dynamic writing.