Major functionality implemented.