Rename self() to parent() and add module() to module's API