Added dynamic resolution