Authentication and code cleaning