Attempting to abstract out input and output of neural networks.