Source code reordered
Security added on connect command.
Activation command added.