Busy day.. Implemented basic functions, not tested yet.