Added dataMedsys function.