Fixed assignments function