Moved vide.main to vide.core (to be more idiomatic)