Added flags to keep readline working