Added mainClass dependency on profile