Updated delegate system to support multiple delegates
Added (initial) support for multiple passcodes