Custom code for A1 by Arnaud P.