Update y-axis range
Remove warnings, add new function