Work in progress (reformated code using the PEAR standard)