Commented the density code.
Changed triggers to allow deleting components.