Added stackHandlers util