Polish code of RApplication