Fine tuning canvas script.