Add more logic functions.