Update functions and add new rake task for calling element