Modified helper methods in Packets class to also accept DataBufs