Base code added, old interface added.