Added initial, tested code.