Function type hinting changed to interface