Set default values and fix ruby syntax