Support for multiple interfaces
Added comments, and additional parameter to parse from the enc