Add declaration check functionality