Quick, dirty but functionnal and compatible PHP 5.4