Fixed DC logic, and makefile