Adding basic send_impulses function and moving defines to header.