Added optional eq function for comparing ids
V0.0.1