Updated line plugin, got rid of some dependencies