Made all arguments optional. Preliminary tests worked out.