-Change: add license header to enums.
-Change: make timeout for poll settable.