Fixed UDP length. Added print statements for debugging