Added security group creation, refactoring
Log using ctx.logger