Added keyalg attribute