Fixes PHP 5.3 issue with custom fields
Adding history module