added a delay to ammy script