Added optional security configuration