New version with support of cutom renderer