Wrapped Planemo into a main function.