Added fillRequired function