Added invocation of layout algorithm