Now works also with FF and php 5.3