Implemented code groundwork.