Make method overidabel for test.