Initial code drop

[NOT TESTED] Initial implementation.