Added prototypes and enough logic to allow protocol be added I believe. Testing now.