Added pop method