Added expirations in output file and added joined (static and dynamic together) file output