Split monop code in to a module