Use type inference where possible