Secure Controller and clean unused files