Added Main check