Working code.