Support range
Implement error handling