Optimizing Information Freshness In Wireless Networks