Modified to work on V5 boards