Use 0 as reference if negative argument is specified