Added @dbrgns crazy factory
Made it possible to use a common template