Allan puts code