Initialize controller methods. Discover file-endings bug