Add ugly functions.