changed every local variale to lower case, added fix from aibo for get_highest_fpm_port()