Fixed compiler issues

Fixed compiler error, removed unused vars and method params.