Implemented id. Closes #167.