Added functions for views