Added gravity support.