Added receive data functionality