Changed the library interface to accept module inputs. This is currently still only connected to the same non-module backend as before.