Added working receiving data functionality