Added a slowread function and moved slowread & slowwrite to shared.*