Better map implementation.