Added line splitting (Now working correctly)