Functions are now exporeted, and returns an error