Got rid of duplicate parseInt code