Added basic active/inactive behavior.