Some record of coding, for reminding myself :-)