Implemented draging