Made filesystem functions own object and created bind method.