Allow providing non-static main methods. Not known to work yet.