Got protein to work! Had to lower protein minimum values
Minor refactoring