Fixing the proc so it is correct