removed check for message type being PID
Started writing method to get metadata