Made lines work properly