Enforces id in constructor