Pass interface as parameter