Getting and clearing data