Adding AP inital code