Tidied up easy API implementation.