Bug fix. Added box function.