Preliminary main
A main that might function - but currently doesn't