Added some functions for custom curves