Separate handler code.