Added a function for default case