Added functionality for user to add own routines