Added custom() function