Mention that user_data can be a file path or a string