Added compatibility option and updated example script