Basic main written.