Fixed bug on patterns
Added functions on other routes