Major thread improvement. Some advertising functions added/change, advertisement system not yet ready.