Build activate/deactivate functionality