Allow custom method through the constructor