Writing final output
Little cleanup