Herbs: Added byte swap functions