Added extension and limit functions.