Added risk param to main.