Made functions private
Added placeholder for input validation