First draft of the first procedures. Not yet fully functional.