Help compiler infering types