Added ability to take size parameter.