Changed call to plotspec function