Added a way to parse advertisement data