Small modifications to frontend to accomodate TTL signals