Yes, get_time_length. It could be helpful if he wanted to make it more generic but really the issue is just the conversion from the textual choice the player made to the integer that the plugin needs. That would require either a conversion once the choice was made or if the menuing system allows it, piggybacking the integer value to the menu option somehow and just reading it when the choice is made.