This commit implements the output building