Added possibility to pass callback as second argument