Shortened code, with error handling wrappers
1.2.1