Makes the functions static to comply eith php5.4 error_reporting