Add relative option
A bit of optimization