Built new Input functions

Still buggy - not even compilable yet.