Add some code around Flash command patterns