Base code written.