Added curry and all functions