Added function for currying.