Added badExtensions alongside allowed extensions.