Added purge content
Fixed syntax errors