Move module over to using exec instead of spawn