Changed to form factor the code for our needs. still needs work.