Added proper type specs.