Added compose and partial functions.