Converted Pin to interface; other changes follow