Feature: Refactoring

- Refactors handling density on identity.