Added relative mode property
Fix a few wrong variable names