Modified init to accept path as mendatory but callback as optional