Added new deviation functions.