Changed the way require and the writer are loaded

#276