Added function to parse protocol to a list

Note: Untested and ugly. May collapse when you need it the most.