Prepared code for import into apache...