New custom readline technique - should be faster than readline and split. Untested