Added dependencies and fixed type