Maintaining bacstack in a better way