Changed from using static method to non-static

This was causing strict standard warning on php >= 5.5.