Adding require and templates