Initial commit: base functionality.