Combined all assignment forms into one function