Added cords functionallity