Separate frame operations to new files.