Refactoring of the getdata wrapper function