Encapsulate standard procedure code (error logging, date formatting). Document all prerequisites in the header.