Added packet functionality