Break up into smaller files. Add sidebar controls.