Made lines dynamic