Use an enum class for the parameter of Frame to nicely avoid clashes.