Added functions; still testing data transfer