Add fitAll and fitObject functionality