Made the template file a param
Added disparity callback, removed unnecessary filename declaration