Codes modified to allow additional inputs and to work for other users