Put each mode in its own file.