Add missing code after rebase.

Signed-off-by: crynobone <crynobone@gmail.com>